<ion-header>
  <ion-navbar>
    <ion-title>快剪</ion-title>
    <div class="tool">
      <!-- <img src="assets/imgs/del.png" (click)="deleteAlbum()">
      <img src="assets/imgs/add.png" (click)="selectPicFromLocal()"> -->
      <!-- <span *ngIf="!isShowKB" (click)="showDelIcon()">{{tool_name}}</span> -->
      <button ion-button clear *ngIf="!isShowKB" (click)="showDelIcon()">{{tool_name}}</button>
    </div>
  </ion-navbar>
</ion-header>

<ion-content>
    <!-- <button class="testbtn" (click)="goTest()">ddddddd</button>
    <button class="testbtn d1" (click)="goTestCli()">ddddddd</button> -->
  <div class="albums-wrap">
    <ul else>
      <li *ngFor="let img of album_img; let i = index;">
        <p>{{img.albumname}}</p>
        <img class="del-album" src='assets/imgs/delet.png' [style.display]="tool_name == '编辑' ? 'none' : 'block'" (click)="showConfirmDelAlbum(img.albumname)">
        <div class="bg" (click)="openAlbum(i)" [style.backgroundImage]="'url('+img.dataUrl+')'">
          <!-- <img [src]="img.dataUrl"> -->
        </div>
      </li>
      <li *ngIf="isShowKB" class="kb"><div (click)="PromptEmpty()"></div></li>
      <li *ngIf="isShowKB" class="kb"><div (click)="PromptEmpty()"></div></li>
      <li *ngIf="isShowKB" class="kb"><div (click)="PromptEmpty()"></div></li>
    </ul>
  </div>
  <!-- <div class="try" (click)="selectPicFromLocal()">动手试试？</div> -->
  <button ion-button round class="try" (click)="selectPicFromLocal()">动手试试？</button>
</ion-content>
